package com.topisv.tms.entity.occupiedArea;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.topisv.tms.entity.IdEntity;
import com.topisv.tms.utils.DateUtils;

/**
 * 重算计划表_service
 * 
 * @author gh
 * 
 */
@Entity
@Table(name = "oar_recount_plan")
public class OarRecountPlan extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String warehouseCode;
	private String customerCode;
	private String startTime;
	private String endTime;
	private Double progress;
	private String status;
	private String recountPerson;
	private Date createTime;
	private Date finishTime;
	public String getWarehouseCode() {
		return warehouseCode;
	}
	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public Double getProgress() {
		return progress;
	}
	public void setProgress(Double progress) {
		this.progress = progress;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getRecountPerson() {
		return recountPerson;
	}
	public void setRecountPerson(String recountPerson) {
		this.recountPerson = recountPerson;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getFinishTime() {
		return finishTime;
	}
	
	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}
	@Transient
	public String getCreateTimeStr() {
		return this.createTime==null?"":DateUtils.format(this.createTime, "yyyy-MM-dd");
	}
	@Transient
	public String getFinishTimeStr() {
		return this.finishTime==null?"":DateUtils.format(this.finishTime, "yyyy-MM-dd");
	}
}